package com.ryl.yomall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ryl.yomall.model.product.SpuSaleAttr;
import com.ryl.yomall.model.product.SpuSaleAttrValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * spu销售属性 Mapper 接口
 * </p>
 *
 * @author ryl
 * @since 2020-12-21
 */
@Mapper
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {

    List<SpuSaleAttr> spuSaleAttrList(Long spuId);

    List<SpuSaleAttr> getSpuSaleAttrAndChecked(@Param ( "spuId" ) Long spuId ,@Param ( "skuId" ) Long skuId);
}
